package com.his.his_system.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * 门诊挂号
 * @TableName dzm_his_registration
 */
@TableName(value ="dzm_his_registration")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class DzmHisRegistration implements Serializable {
    /**
     *
     */
    @TableId(type = IdType.AUTO)
    private Long registrationId;

    /**
     * 患者ID
     */
    private Integer patientId;

    /**
     * 医生ID
     */
    private Integer physicianId;

    /**
     * 操作员ID
     */
    private Integer operatorId;

    /**
     * 诊所ID
     */
    private Integer companyId;

    /**
     * 科室ID
     */
    private Integer departmentId;

    /**
     * 挂号费用ID
     */
    private Integer registeredfeeId;

    /**
     * 挂号总金额
     */
    private Double registrationAmount;

    /**
     * 挂号编号
     */
    private Long registrationNumber;

    /**
     * 挂号状态,1为待就诊，3为已退号，2为已就诊,4为作废，5,为未付款,6，为部分支付
     */
    private Integer registrationStatus;

    /**
     * 排班主表ID
     */
    private Integer schedulingId;

    /**
     * 排班时段表ID
     */
    private Integer schedulingSubsectionId;

    /**
     * 排班星期表ID
     */
    private Integer schedulingWeekId;

    /**
     *
     */
    private Integer createTime;

    /**
     * 更新时间
     */
    private Integer updateTime;

    /**
     * 收费总表care_pkg.id
     */
    private Object pkgId;

    /**
     * 患者信息
     */
    @TableField(exist = false)
    private DzmPatient dzmPatient;

    /**
     * 科室
     */
    @TableField(exist = false)
    private DzmHisDepartment dzmHisDepartment;


    /**
     * 医生
     */
    @TableField(exist = false)
    private DzmHisDoctor dzmHisDoctor;


    /**
     * 挂号费用表
     */
    @TableField(exist = false)
    private DzmHisRegisteredfee dzmHisRegisteredfee;
    /**
     * 挂号类型直映射
     */
    @TableField(exist = false)
    private String regType;

    @TableField(exist = false)
    private DzmHisSchedulingWeek dzmHisSchedulingWeek;

}
